package com.chooongg.adapter.entity

/**
 * 带头部布局的实体类接口
 */
interface SectionEntity : MultiItemEntity {

    companion object {
        const val ITEM_TYPE_NORMAL = -1
        const val ITEM_TYPE_HEADER = -100
    }

    fun isHeader(): Boolean

    override fun getItemType() = if (isHeader()) ITEM_TYPE_HEADER else ITEM_TYPE_NORMAL
}